import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'node:path'
import dts from "vite-plugin-dts"

export default defineConfig({
    plugins: [vue(), dts()],
    build: {
        lib: {
            entry: 'src/index.ts',
            name: 'aosv',
            formats: ['es']
        },
        rollupOptions: {
            external: ['vue'],
        },
        sourcemap: true
    },
    resolve: {
        alias: {
            '@': path.resolve(__dirname, 'src'),
        }
    }
})